import request from "@/utils/request"
//查询员工列表
export const queryPageApi = (name,gender,begin,end,page,pageSize) => request.get(`/emps?name=${name}&gender=${gender}&begin=${begin}&end=${end}&page=${page}&pageSize=${pageSize}`)

//添加员工
export const addEmpApi = (emp) => request.post(`/emps`,emp)

//根据id查询回显
export const queryEmpByIdApi = (id) => request.get(`/emps/${id}`)

//修改员工
export const updateEmpApi = (emp) => request.put(`/emps`,emp)
//批量删除员工
// export const deleteEmpByidsApi = (ids) => request.delete(`/emps?ids=${ids.join(',')}`)
export const deleteEmpByidsApi = (ids) => request.delete(`/emps?ids=${ids}`)